﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace DataModel
{
    public class Student : Person
    {
        public static List<string> PossibleClasses = new List<string>
        {
            "5", "6", "7", "8", "9", "EF", "Q1", "Q2"
        };

        [Column("STARTEDHERE")]
        public int StartedHere { get; set; }  // start year in this school
        [Column("STARTYEAR")]
        public int StartYear { get; set; }  // Start year in the 1st class of this school
        [Column("DELAYED")]
        public int Delayed { get; set; }    // delay in years compared to others
        [Column("CLASSID")]
        public string ClassID { get; set; }   // class - A, B, C, ...
    }

    public class StudentConfiguration : EntityTypeConfiguration<Student>
    {
        public StudentConfiguration()
        {
            ToTable("STUDENT");
        }
    }
}
